<!-- <page-header-wrapper [title]="'申请记录'">
</page-header-wrapper>
<nz-card class="search-box" nzBordered>
    <div nz-row nzGutter="8">
        <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
            <sf #sf [schema]="searchSchema"
                [ui]="{ '*': { spanLabelFixed: 110,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
                [button]="'none'"></sf>
        </div>
        <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand"
            class="text-right">
            <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
            <button nz-button (click)="resetSF()">重置</button>
            <button nz-button (click)="exprot()"  acl  [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-export']"> 导出</button>
            <button nz-button nzType="link" (click)="expandToggle()">
                {{ !_$expand ? '展开' : '收起' }}
                <i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
            </button>
        </div>
    </div>
</nz-card> -->

<nz-card class="table-box">
    <div class="header_box">
        <label class="page_title"> <label class="driver">|</label> 申请记录</label>
        <div class="d-flex align-items-center mr-sm">
            <div class="mr-md">
                已选择
                <strong class="text-primary">{{ selectedRows.length }}</strong> 张发票
                <a *ngIf="selectedRows.length > 0" (click)="st.clearCheck()" class="ml-lg">清空</a>
            </div>
            <button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
            <button nz-button nzDanger (click)="exprot()" acl [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-export']">
                导出</button>
            <button nz-button nzType="primary" (click)="this.auditAction()" acl
                [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-apply']">申请开票</button>
        </div>
    </div>

    <!-- <div class="d-flex align-items-center mb-md mt-md">
        <button nz-button (click)="this.auditAction()"  acl  [acl-ability]="['TICKET-ETC-INVOICE-REQUESTED-apply']">申请开票</button>
        <div class="ml-md">
            已选择
            <strong class="text-primary">{{ selectedRows.length }}</strong> 条运单
            <a *ngIf="selectedRows.length > 0" (click)="st.clearCheck()" class="ml-lg">清空</a>
        </div>
    </div> -->

    <st #st [data]="service.$api_get_apply_invoice_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
        [loading]="false" [scroll]="{ x:'1200px',y:scrollY }" (change)="stChange($event)">
        <ng-template st-row="call1No" let-item let-index="index" let-column="column">
            {{item.driverName}}<br>{{item.driverPhone}}
        </ng-template>
        <ng-template st-row="call1N2o" let-item let-index="index" let-column="column">
            {{item.licenseCarNo}}<br> {{item.licenseBelonging}}
        </ng-template>
    </st>
</nz-card>